package com.hucsmn.phone;

import java.util.Arrays;

/**
 * 手机卡类型测试类。
 */
public class CardKindTest extends Tester {
    private static final String[] KINDS;

    static {
        String[] kinds = {"BIG", "SMALL", "MICRO"};
        Arrays.sort(kinds);
        KINDS = kinds;
    }

    public static void main(String[] args) {
        CardKind[] values = CardKind.values();
        String[] kinds = new String[values.length];
        for (int i = 0; i < values.length; i++) {
            kinds[i] = values[i].toString();
        }
        Arrays.sort(kinds);
        asserts(Arrays.equals(kinds, KINDS));
    }
}
